package com.xqboss.apps.domain.nft;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonIgnore;
import lombok.Data;

import java.util.Date;

/**
 * @author generator@TaleLin
 * @since 2020-05-27
 */
@Data
@TableName("brand")
public class Brand {


    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    private String name;

    private String description;

    //    @Enum(allowNull = true, target = CategoryRootOrNotEnum.class)
    private Integer isRoot;
    //
//    @Enum(allowNull = true, target = RecommendOrNot.class)
    private Integer isRecommend;

    private Integer parentId;

    private String img;

    @TableField(value = "`index`")
    private Integer index;

    @TableField(value = "`online`")
//    @Enum(allowNull = true, target = OnlineOrNotEnum.class)
    private Integer online;

    private Integer level;

    private Integer targetType;

    @JsonIgnore
    private Date createTime;

    @JsonIgnore
    private Date updateTime;

    @TableLogic(value = "null", delval = "now()")
    @JsonIgnore
    private Date deleteTime;


}
